package com.hamilton.erik.pt.core.model;

import java.io.Serializable;

import com.hamilton.erik.pt.core.enumeration.MedicalAction;

public class MedicalRecord  implements Serializable {

	private static final long serialVersionUID = -3760768800412910504L;
	
	private Long id;
	private Long animalId;
	private MedicalAction action;
	private String timestamp;
	
	public MedicalRecord() {
		
	}
	
	public Long getId() {
		return id;
	}
	
	public void setId(Long id) {
		this.id = id;
	}
	
	public Long getAnimalId() {
		return animalId;
	}
	
	public void setAnimalId(Long animalId) {
		this.animalId = animalId;
	}
	
	public MedicalAction getAction() {
		return action;
	}
	
	public void setAction(MedicalAction action) {
		this.action = action;
	}
	
	public void setAction(String action) {
		this.action = MedicalAction.fromAction(action);
	}

	public String getTimestamp() {
		return timestamp;
	}

	public void setTimestamp(String timestamp) {
		this.timestamp = timestamp;
	}

}
